<?php 
namespace Product\Model;

class ImgProduct
{
	public $ID_IMGPR;
	public $LINKIMG;
	public $DELEGATE;
	public $ID_PR;

	public function exchangeArray($data)
	{
		$this->ID_IMGPR     = (!empty($data['ID_IMGPR'])) ? $data['ID_IMGPR'] : null;
		$this->LINKIMG = (!empty($data['LINKIMG'])) ? $data['LINKIMG'] : null;
		$this->DELEGATE     = (!empty($data['DELEGATE'])) ? $data['DELEGATE'] : null;
		$this->ID_PR = (!empty($data['ID_PR'])) ? $data['ID_PR'] : null;		
	}
	
	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}
	

}